package cn.orangelite.ai.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.orangelite.common.core.annotation.Excel;
import cn.orangelite.common.core.web.domain.BaseEntity;

/**
 * 插件列对象 ai_plugins
 * 
 * @author dongfaqing
 * @date 2024-01-18
 */
public class AiPlugins extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Integer id;

    /** 插件名称 */
    @Excel(name = "插件名称")
    private String name;

    /** 描述 */
    @Excel(name = "描述")
    @TableField("`desc`")
    private String desc;

    /** 封面图 */
    @Excel(name = "封面图")
    private String pic;

    /** 下载次数 */
    @Excel(name = "下载次数")
    private Long download;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long userId;

    /** 代码文件 */
    @Excel(name = "代码文件")
    private String code;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDesc(String desc) 
    {
        this.desc = desc;
    }

    public String getDesc() 
    {
        return desc;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }
    public void setDownload(Long download)
    {
        this.download = download;
    }

    public Long getDownload()
    {
        return download;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("desc", getDesc())
            .append("pic", getPic())
            .append("createTime", getCreateTime())
            .append("download", getDownload())
            .append("userId", getUserId())
            .append("code", getCode())
            .toString();
    }
}
